package com.song.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Component
@TableName("t_role")
public class Role implements Serializable {
   @TableId(value = "role_id",type = IdType.AUTO)
   private Integer roleId;
   @TableField(value = "role_name")
   private String roleName;
   @TableField(value = "role_info")
   private String roleInfo;
   @TableField(value = "role_size")
   private String roleSize;

   @Override
   public String toString() {
      return "Role{" + "roleId=" + roleId + ", roleName='" + roleName + '\'' + ", roleInfo='" + roleInfo + '\'' + ", roleSize='" + roleSize + '\'' + '}';
   }
}
